﻿/// <reference path="../../../../scripts/typings/jquery/jquery.d.ts" />

module ExtendedWiki {

   export  class Utility {
        
       constructor() { }
        
        escapeHtml(text: string) {

            return text
                .replace(/&/g, "&amp;")
                .replace(/</g, "&lt;")
                .replace(/>/g, "&gt;")
                .replace(/"/g, "&quot;")
                .replace(/'/g, "&#039;");
        }

    }
};